package com.xinghai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinghai.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import com.xinghai.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 活动记录对象 jkq_activity_log
 *
 * @author xinghai
 * @date 2025-08-14
 */
@TableName("jkq_activity_log")
@EqualsAndHashCode(callSuper = true)
@Data
public class JkqActivityLog extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 活动标题 */
    @Excel(name = "活动标题")
    @TableField(exist = false)
    private String title;

    /** 活动封面 */
    @Excel(name = "活动封面")
    @TableField(exist = false)
    private String activityImageUrl;

    /** user_id */
    @Excel(name = "user_id")
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 头像 */
    @Excel(name = "头像")
    private String imageUrl;

    /** 邀请人user_id */
    @Excel(name = "邀请人user_id")
    private Long yqUserId;

    /** 活动类型 */
    @Excel(name = "活动类型", dictType = "activity_type")
    private String type;

    /** 状态 */
    @Excel(name = "状态",readConverterExp = "0=正常,1=隐藏")
    private String status;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

    /** 信息 */
    @Excel(name = "信息")
    private String remark;

    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 活跃天数 */
    @Excel(name = "健康管理师昵称")
    @TableField(exist = false)
    private String healthUserName;

    /** 活跃天数 */
    @Excel(name = "健康管理师id")
    @TableField(exist = false)
    private Long healthUserId;
}
